'\" t
.\"     Title: ccndsmoketest
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\"      Date: 11/03/2010
.\"    Manual: \ \&
.\"    Source: \ \& 0.3.0
.\"  Language: English
.\"
.TH "CCNDSMOKETEST" "1" "11/03/2010" "\ \& 0\&.3\&.0" "\ \&"
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
ccndsmoketest \- Simple program for smoke\-test of ccnd\&.
.SH "SYNOPSIS"
.sp
\fBccndsmoketest\fR [\-b] [\-t \fImsec\fR] [ (\-T | \-u) \fIhostname\fR ] ( send \fIfilename\fR | \fIsendfilename\fR\&.ccnb | recv | kill | status | timeo \fImsec\fR ) \fI\&...\fR
.SH "DESCRIPTION"
.sp
The \fBccndsmoketest\fR is a simple program for sending and receiving data on sockets, for the purpose of testing ccnd\&.
.sp
Most of what this program does could be done with \fBnc\fR(1) (aka netcat)\&. It intentionally understands almost nothing about CCNx protocols\&.
.SH "OPTIONS"
.PP
\fB\-b\fR
.RS 4
Binary output on stdout instead of the default hex\&.
.RE
.PP
\fB\-t\fR \fImilliseconds\fR
.RS 4
Set the timeout for recv commands (default is 1000, or 1 second)\&.
.RE
.PP
\fB\-T\fR \fIhostname\fR
.RS 4
Contact the ccnd on the named host via TCP instead of the default unix\-domain socket\&.
.RE
.PP
\fB\-u\fR \fIhostname\fR
.RS 4
Contact the ccnd on the named host via UDP instead of the default unix\-domain socket\&.
.RE
.SH "ARGUMENTS"
.sp
The remaining arguments are processed in order\&.
.PP
\fBsend\fR \fIfilename\fR
.RS 4
Send the contents of the named file\&. Use
\fI\-\fR
to read from stdin\&.
.RE
.PP
\fBsendfilename\fR\&.ccnb
.RS 4
If the file extension is
\fB\&.ccnb\fR, the
\fBsend\fR
verb may be omitted\&.
.RE
.PP
\fBrecv\fR
.RS 4
Recv one chunk (packet) and write the result to stdout (hex by default, but see \-b)\&. Times out with a message to stderr if nothing is received\&.
.RE
.PP
\fBkill\fR
.RS 4
Shuts down ccnd cleanly\&.
.RE
.PP
\fBstatus\fR
.RS 4
Used to implement
\fBccndstatus\fR(1)\&.
.RE
.PP
\fBtimeo\fR \fImilliseconds\fR
.RS 4
Set the timeout for subsequent recv commands\&.
.RE
.SH "OUTPUT"
.sp
Hex by default, but binary output may be requested with \-b\&.
.SH "EXIT STATUS"
.PP
\fB0\fR
.RS 4
Success
.RE
.PP
\fBnonzero\fR
.RS 4
Failure (syntax or usage error, file not found)
.RE
.SH "SEE ALSO"
.sp
\fBccndstop\fR(1), \fBccndstatus\fR(1)
.sp
Michael Plass <plass@parc\&.com>
